function(GetExecName exec)
	if(${exec} STREQUAL "")
		set(exec ${PROJECT_NAME} PARENT_SCOPE)
	endif()

	if(CMAKE_BUILD_TYPE STREQUAL "Debug")
		set(exec ${exec}d PARENT_SCOPE)
	else()
		set(exec ${exec} PARENT_SCOPE)
	endif()
endfunction()